<template>
    <div id="MyMember-Top-Middle">
        <div id="MyMember-Top-Middle-Content">
            <div class="top">
                <div class="content">
                    <div>
                        <img src="img/My/My.png" alt="">
                        <p>
                            <span>饕餮</span>
                            <em>开通盐选会员，畅想好内容</em>
                        </p>
                    </div>
                </div>
                <p class="p1">
                    <img src="img/My/KaiTong/bg.jpg" alt="">
                </p>
            </div>
            <div class="middle">
                <div class="content">
                    <div class="title">
                        <ul>
                            <li>
                                <span class="tit">
                                    连续包月
                                </span>

                                <span class="money">
                                    ￥<span class="span">19</span>
                                </span>

                                <span class="min-money">￥25</span>

                                <p>
                                    <span>次月 ￥19 续费</span>
                                    可随时取消
                                </p>
                            </li>
                            <li>
                                <span class="tit">
                                    连续包月
                                </span>

                                <span class="money">
                                    ￥<span class="span">19</span>
                                </span>

                                <span class="min-money">￥25</span>

                                <p>
                                    <span>次月 ￥19 续费</span>
                                    可随时取消
                                </p>
                            </li>
                            <li>
                                <span class="tit">
                                    连续包月
                                </span>

                                <span class="money">
                                    ￥<span class="span">19</span>
                                </span>

                                <span class="min-money">￥25</span>

                                <p>
                                    <span>次月 ￥19 续费</span>
                                    可随时取消
                                </p>
                            </li>
                            <li>
                                <span class="tit">
                                    连续包月
                                </span>

                                <span class="money">
                                    ￥<span class="span">19</span>
                                </span>

                                <span class="min-money">￥25</span>

                                <p>
                                    <span>次月 ￥19 续费</span>
                                    可随时取消
                                </p>
                            </li>
                            <li>
                                <span class="tit">
                                    连续包月
                                </span>

                                <span class="money">
                                    ￥<span class="span">19</span>
                                </span>

                                <span class="min-money">￥25</span>

                                <p>
                                    <span>次月 ￥19 续费</span>
                                    可随时取消
                                </p>
                            </li>
                            <li>
                                <span class="tit">
                                    连续包月
                                </span>

                                <span class="money">
                                    ￥<span class="span">19</span>
                                </span>

                                <span class="min-money">￥25</span>

                                <p>
                                    <span>次月 ￥19 续费</span>
                                    可随时取消
                                </p>
                            </li>
                        </ul>
                    </div>
                    <div class="list">
                        <h2>支付方式</h2>
                        <ul >
                            <li ref="li" class="li">
                                <span class="iconfont icon-zhifubao b1" ></span>
                                <p class="p">
                                    <strong>
                                    支付宝
                                    <em class="first">推荐</em>
                                    </strong>
                                    <i class="iconfont icon-duigou"></i>
                                </p>
                            </li>
                            <li ref="li" class="li">
                                <span class="iconfont icon-huabei b2"></span>
                                <p class="p">
                                    花呗
                                    <i class="iconfont icon-duigou"></i>
                                </p>
                            </li>
                            <li ref="li" class="li">
                                <span class="iconfont icon-weixinzhifu b3"></span>
                                <p class="p">
                                    微信
                                    <i class="iconfont icon-duigou"></i>
                                </p>
                            </li>
                            <li ref="li" class="li">
                                <span class="iconfont icon-yinlian b4"></span>
                                <p class="p">
                                    银联
                                    <i class="iconfont icon-duigou"></i>
                                </p>
                            </li>
                            <p class="more" @click="Play()">展开更多支付方式</p>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Member-Top-Middle",
        mounted() {
            let liList=document.querySelectorAll(".list ul .li");
            // console.log(liList.length);
            liList.forEach((item,i)=>{
                if (i>1){
                    item.style.display="none";
                }
            })
        },
        methods:{
            Play(){
                let liList=document.querySelectorAll(".list ul .li");
                let P=document.querySelector(".more");
                liList.forEach((item,i)=>{
                    if (i>1){
                        item.style.display="flex";
                    }
                })
                console.log(P);
                P.style.display="none"
            }
        }
    }
</script>

<style lang="scss" scoped>
    #MyMember-Top-Middle{
        width: 100%;
        margin-top: -0.01rem;
    }

    #MyMember-Top-Middle-Content{
        width: 100%;

        .top{
            width: 100%;

            .content{
                width: 100%;
                height: 1.08rem;
                padding: 0.43rem 0.15rem 0 0.15rem;
                background-color: #f5cc94;

                div{
                    width: 3.3rem;
                    height: 0.65rem;
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    background-color: #f9ddb8;
                    border-radius: 0.08rem 0.08rem 0 0;


                    img{
                        width: 0.54rem;
                        border-radius: 50%;
                        margin: 0 0.09rem 0 0.13rem;
                        vertical-align: bottom;
                    }

                    p{
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: flex-start;

                        span{
                            font-size: 0.19rem;
                            color: #461a00;
                            font-weight: bold;
                        }
                        em{
                            font-size: 0.14rem;
                            font-style: normal;
                            color: #592e00;
                        }
                    }
                }
            }



            img{
               width: 3.3rem;
                display: block;
            }

            .p1{
                width: 100%;
                background-color: #FFFFFF;
                padding: 0 0.15rem;
            }
        }

        .middle{
            width: 100%;
            padding-top: 0.19rem;
            padding-bottom: 0.2rem;
            background-color: #FFFFFF;

            .content{
                width: 100%;

                .title{
                    width: 100%;

                    ul::-webkit-scrollbar{
                        //滚动条隐藏
                        display: none;
                    }
                    ul{
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;

                        /*隐藏滚动条开始*/
                        white-space: nowrap;//不换行
                        -webkit-overflow-scrolling: touch;
                        overflow-x: auto;//横向自动
                        overflow-y: hidden;//纵向隐藏
                        overflow: -moz-scrollbars-none;
                        overflow: -moz-scrollbars-none;
                        /*隐藏滚动条结束*/

                        li{
                            width: 1.04rem;
                            height: 1.56rem;
                            border-radius: 0.1rem;
                            display: flex;
                            flex-direction: column;
                            border: 0.02rem solid #e9e9e9;
                            justify-content: center;
                            align-items: center;
                            margin-right: 0.08rem;
                            flex-shrink: 0;
                            box-shadow: 0 0 0.03rem 0.04rem #f9f9f9;//四边阴影顺序：上 左 右 下

                            .tit{
                                font-size: 0.17rem;
                                color: #000;
                                margin-bottom: 0.16rem;
                            }

                            .money{
                                font-size: 0.15rem;
                                color: #000;
                                margin-bottom: 0.11rem;

                                .span{
                                    font-size: 0.24rem;
                                    color: #000;
                                }
                            }

                            .min-money{
                                color: #c28e40;
                                font-size: 0.14rem;
                                text-decoration: line-through;
                                margin-bottom: 0.05rem;
                            }

                            p{
                                color: #9d9d9d;
                                font-size: 0.12rem;
                                line-height: 0.16rem;
                                text-align: center;
                                white-space: normal;
                            }
                        }

                        li:first-of-type{
                            margin-left: 0.19rem;
                            border: 0.02rem solid #efa63f;
                            background-color: #fdf9f0;

                            .tit{
                                color: #623500;
                            }

                            .money{
                                color: #4e1b00;

                                .span{
                                    color: #4e1b00;
                                }
                            }

                            .min-money{
                                font-weight: bold;
                            }
                        }
                    }
                }

                .list{
                    width: 100%;
                    background-color: #FFFFFF;
                    padding: 0 0.2rem;

                    h2{
                        font-size: 0.15rem;
                        color: #020202;
                        height: 0.46rem;
                        line-height: 0.46rem;
                    }

                    ul{
                        li{
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                            height: 0.4rem;

                            i{
                                display: none;
                                margin-right: 0.04rem;
                                font-weight: bold;
                            }

                            span{
                                font-size: 0.18rem;
                                margin: 0 0.12rem 0 0.02rem;
                            }
                            .b1{
                                color: #055ce9;
                            }
                            .b2{
                                color: #0056f8;
                            }
                            .b3{
                                color: rgb(107, 204, 3);
                            }
                            .b4{
                                color: rgb(230, 0, 18);
                            }

                            p{
                                flex-grow: 1;
                                height: 0.4rem;
                                font-size: 0.16rem;
                                color: #282828;
                                border-bottom: 0.02rem solid #f5f5f5;
                                display: flex;
                                justify-content: space-between;
                                align-items: center;

                                strong{
                                    font-weight: normal;
                                }

                                i{
                                    font-size: 0.12rem;
                                    color: #0261fb;
                                }

                                em{
                                    font-style: normal;
                                    width: 0.32rem;
                                    height: 0.18rem;
                                    display: inline-block;
                                    background-color: #ff7b00;
                                    color: #fff;
                                    border-radius: 0.04rem;
                                    font-size: 0.12rem;
                                    text-align: center;
                                    line-height: 0.18rem;
                                }
                            }

                        }

                        li:nth-of-type(1) i{
                            display: block;
                        }
                    }
                    .more{
                        font-size: 0.12rem;
                        color: #0067e8;
                        padding: 0.14rem 0 0.14rem 0.2rem;
                    }
                }
            }
        }
    }
</style>